<?php !defined( 'SUNCMS' ) && exit( 'No direct script access allowed'  );

/**
 * 
 * Sun CMS
 * 
 * @author			Burning
 * @copyright		Copyright (c) 2009, IsunCms.Com.
 * @license			http://www.isuncms.com/license.htm
 * @link				http://www.isuncms.com/
 * @since				Version 1.0 Beta
 * 
 */

if( $do == 'index' )
{
	$category = get_category( 'article' );
	$article = get_document_list( 'article', 1 );
	include( display( 'document_list' ) );
	unset( $category, $article );
}
elseif( $do == 'getcategory' )
{
	$model = get_post( 'model' );
	$category = get_category( $model );
	echo json_encode( $category );
}
elseif( $do == 'list' )
{
	$page = get_post( 'page' );
	$status = get_post( 'status' );
	$model = get_post( 'model' );
	$start_time = get_post( 'stime' );
	$end_time = get_post( 'etime' );
	$tag = get_post( 'tag' );
	$cat = get_post( 'cat' );
	
}